summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/audio/audio_renderer_manager.h
blob: 3623f91c68752c452f61c3756ece9bd1c36829d5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later

#pragma once

#include "audio_core/audio_render_manager.h"
#include "core/hle/service/kernel_helpers.h"
#include "core/hle/service/service.h"

namespace Core {
class System;
}

namespace Service::Audio {
class IAudioRenderer;

class IAudioRendererManager final : public ServiceFramework<IAudioRendererManager> {
public:
    explicit IAudioRendererManager(Core::System& system_);
    ~IAudioRendererManager() override;

private:
    void OpenAudioRenderer(HLERequestContext& ctx);
    void GetWorkBufferSize(HLERequestContext& ctx);
    void GetAudioDeviceService(HLERequestContext& ctx);
    void OpenAudioRendererForManualExecution(HLERequestContext& ctx);
    void GetAudioDeviceServiceWithRevisionInfo(HLERequestContext& ctx);

    KernelHelpers::ServiceContext service_context;
    std::unique_ptr<AudioCore::Renderer::Manager> impl;
    u32 num_audio_devices{0};
};

} // namespace Service::Audio